﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListTypeOfBusiness.ascx.cs" Inherits="Pantry.Web.Users.Controls.ListTypeOfBusiness" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="ButtonSearch" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="ButtonNone" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="ButtonClear" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="ButtonSelect" EventName="Click"/>
    <asp:AsyncPostBackTrigger ControlID="CollectionPager" EventName="Click"/>
</Triggers>
<ContentTemplate>
<div class="widget_contents noPadding ">
    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
        <div class="dtTop">
            <div class="dtFilter">
                <div id="DataTables_Table_0_filter" class="dataTables_filter">
                    <div style="float: left; width: auto; margin-left: 5px;">
                        <label style="margin-left: 10px; margin-bottom: 5px;">
                            Business Name:
                        </label>
                        <asp:TextBox ID="textboxBusiness" runat="server" class="input_text" Width="300px"></asp:TextBox>
                        <label style="margin-left: 10px">
                            SIC Code:
                        </label>
                        <asp:TextBox ID="TextboxSIC" runat="server" class="input_text" Width="80px"></asp:TextBox>
                    </div>
                    <div style="width: auto; margin-left: 5px; float: right;">
                        <asp:Button ID="ButtonSearch" runat="server" class="simple_buttons" Text="Search" OnClick="Search_Click" />
                        <asp:Button ID="ButtonNone" runat="server" class="simple_buttons" Text="None" OnClick="None_Click" />
                        <asp:Button ID="ButtonClear" runat="server" class="simple_buttons" Text="Clear" OnClick="Clear_Click" />
                    </div>
                </div>
            </div>
            <div style="clear: both;">
            </div>
        </div>
        <div class="dtTables">
            <table  class="tables noObOLine dataTable">
                <thead>
                    <tr role="row">
                        <th style="width: 5%">
                            
                        </th>
                        <th aria-label="Rendering engine: activate to sort column descending" aria-sort="ascending"
                            style="width: 75%;" colspan="1" rowspan="1" aria-controls="DataTables_Table_0"
                            tabindex="0" role="columnheader">
                            Business Name
                        </th>
                        <th aria-label="Browser: activate to sort column ascending" style="width: 20%;"
                            colspan="1" rowspan="1" aria-controls="DataTables_Table_0" tabindex="0" role="columnheader"
                            >
                            SIC Code
                        </th>
                    </tr>
                </thead>
                <tbody aria-relevant="all" aria-live="polite" role="alert">
                    <asp:Repeater ID="RepeaterBusiness" runat="server">
                        <ItemTemplate>
                            <tr class="odd">
                                <td>
                                    <input type="radio" name="RadioTypeId" class="simple_form" value="<%#Eval("TypeName") %>$<%#Eval("SicCode") %>$<%#Eval("Id") %>"/>
                                </td>
                                <td>
                                    <%#Eval("TypeName")%>
                                </td>
                                <td>
                                    <%#Eval("SicCode") %>
                                </td>
                            </tr>
                        </ItemTemplate>                                
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="dtBottom">
            <div class="dtInfo">
                <div class="dtPagination">
                    <div>
                        <asp:Button ID="ButtonSelect" runat="server" Text="Select" CssClass="simple_buttons selectbutton" OnClick="ButtonSelectClick" />
                        &nbsp;
                        <asp:Button ID="ButtonClose" runat="server" Text="Close" CssClass="simple_buttons" OnClientClick="ClosePopup();" />
                    </div>
                </div>
            </div>
            <div class="dtPagination">
                <cc1:CollectionPager ID="CollectionPager" runat="server" BackText="Back" FirstText="First"
                    ShowLabel="False" ShowFirstLast="False" NextText="Next" ResultsLocation="None" PagingMode="PostBack"
                    PageNumbersSeparator="">
                </cc1:CollectionPager>
            </div>
        </div>
    </div>
    </div>
</ContentTemplate></asp:UpdatePanel>